/* GUI CONVERTED from rcrp01.i (converter v1.75) Tue Apr 10 12:05:17 2001 */
/* rcrp01.i - Release Management Customer Schedules                           */
/* Copyright 1986-2002 QAD Inc., Carpinteria, CA, USA.                        */
/* All rights reserved worldwide.  This is an unpublished work.               */
/* $Revision: 1.6 $                                                         */
/*V8:ConvertMode=Report                                                       */
/* REVISION: 7.0    LAST MODIFIED: 01/29/92           BY: WUG *F110*          */
/* REVISION: 7.3    LAST MODIFIED: 12/18/92           BY: WUG *G462*          */
/* REVISION: 7.4    LAST MODIFIED: 09/29/93           BY: WUG *H142*          */
/* REVISION: 7.4    LAST MODIFIED: 04/16/96           BY: kjm *G1T0*          */
/* REVISION: 9.1    LAST MODIFIED: 08/12/00           BY: *N0KP* myb          */
/* Old ECO marker removed, but no ECO header exists *F0PN*                    */
/* $Revision: 1.6 $    BY: Jean Miller           DATE: 03/22/01  ECO: *P008*  */
/******************************************************************************/
/* All patch markers and commented out code have been removed from the source */
/* code below. For all future modifications to this file, any code which is   */
/* no longer required should be deleted and no in-line patch markers should   */
/* be added.  The ECO marker should only be included in the Revision History. */
/******************************************************************************/

/* SCHEDULE REPORT INCLUDE */


/*GUI preprocessor directive settings */
&SCOPED-DEFINE PP_GUI_CONVERT_MODE REPORT

if current_ind then do:
   find sch_mstr where
          sch_type = schtype
      and sch_nbr = sod_nbr and sch_line = sod_line
      and (sch_cr_date >= date_from or date_from = ?)
      and (sch_cr_date <= date_to or date_to = ?)
      and sch_rlse_id = sod_curr_rlse_id[schtype]
   no-lock no-error.
   if available sch_mstr then do:
      {gprun.i ""rciq1a.p""
         "(input schtype,
           input sod_nbr,
           input sod_line,
           input sch_rlse_id,
           input no)"}
   end.
end.
else do:
   for each sch_mstr no-lock
      where sch_type = schtype
        and sch_nbr = sod_nbr and sch_line = sod_line
        and (sch_cr_date >= date_from or date_from = ?)
        and (sch_cr_date <= date_to or date_to = ?)
   by sch_cr_date by sch_cr_time:
      {gprun.i ""rciq1a.p""
         "(input schtype,
           input sch_nbr,
           input sch_line,
           input sch_rlse_id,
           input no)"}
   end.
end.
